<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <title>编辑个人资料</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="/css/see/reset.min.css">
    <link rel="stylesheet" href="/plugins/iosselect/iosselect.css">
    <link rel="stylesheet" href="/css/happyi/userEdit.min.css?v=<%=$version%>">
</head>
<body>
<div id="editJob" v-cloak>
    <div class="circleBar-top">
        <span class="goback" @click="getBack()"></span>
        {{{"1":"发布新职位","2":"编辑职位"}[""+type]}}
        <strong class="seeIndex-setUp" @click="updateUserData()" v-if="type==1">发布</strong>
        <strong class="seeIndex-setUp" @click="updateUserData()" v-if="type==2">保存</strong>
    </div>
    <div class="userEdit">
        <div class="userEdit-list">职位名称
            <input class="happyi-left" type="text" v-if="type==1" v-model="list.title" :value="list.title"/>
            <input class="happyi-left" type="text" v-if="type==2" disabled :value="list.title"/>
        </div>
        <div class="userEdit-list">职位类别
            <a class="happyi-left" @click="getIsScreen(2)" v-if="type==1">{{list.category}}</a>
            <a class="happyi-left txtccc" v-if="type==2">{{list.category}}</a>
        </div>
        <div class="userEdit-list mb2">工作地点<a class="happyi-left" @click="getIsScreen(1)">{{listName.areaName}}</a></div>
        <div class="userEdit-list mb2">职位描述<a class="happyi-left" @click="getDescription()">{{introduce}}</a></div>
        <div class="userEdit-list">工作性质<a class="happyi-left" @click="getSelect(3)">{{listName.natureName}}</a></div>
        <div class="userEdit-list">工作经验<a class="happyi-left" @click="getSelect(4)">{{listName.experienceName}}</a></div>
        <div class="userEdit-list">学历要求<a class="happyi-left" @click="getSelect(1)">{{listName.educationName}}</a></div>
        <div class="userEdit-list mb2">月薪范围<a class="happyi-left" @click="getSelect(2)">{{listName.salaryName}}</a></div>
        <div class="userEdit-list">发布状态<a class="happyi-left" :class="[list.state=='1'?'adDetails-centBtn':'adDetails-centBtn1']" @click="getState()">{{listName.stateName}}</a></div>

    </div>
    <div class="editJob-btn" @click="deleteRecruitById()" v-if="type==2">删除</div>
    <div class="provingMode"></div>
    <div id="mask1" @click="getIsScreen()" :class="{'maskShow':isScreen}"></div>
    <div id="screen" :class="{'maskShow':isScreen}">
        <template v-if="isScreen==1">
            <city-Choice :message="message" @choice="choiceList" @close="getIsScreen()"></city-Choice>
        </template>
        <template v-if="isScreen==2">
            <div class="screen-title">选择职位类别</div>
            <div class="position-category clearfix">
                <div class="chooseCity-province">
                    <span v-for="item in dataInfo.recruitIndustrys" :class="{active:item.parentId==initId1}" @click="recruitCategorys(item.parentId,1)">{{item.name}}</span>
                </div>
                <div class="chooseCity-city">
                    <span v-for="item in rCategorys" :class="{active:item.id==initId2}" @click="recruitCategorys(item.id,2)">{{item.name}}</span>
                </div>
                <div class="chooseCity-area">
                    <span v-for="item in rCategorys1" @click="getOccupation(item.name)">{{item.name}}</span>
                </div>
            </div>
        </template>
    </div>
    <div id="jobDescription" :class="{'maskShow':isDescription}">
        <div class="circleBar-top">
            <span class="goback" @click="getDescription()"></span>
            职位描述
            <strong class="seeIndex-setUp" @click="getDescription(1)">保存</strong>
        </div>
        <div class="jobDescription">
            <textarea placeholder="职位描述..." v-model="list.introduce" :value="list.introduce"></textarea>
        </div>
    </div>
    <prompt-view ref="prompt"></prompt-view>
</div>
<script src='/plugins/js/jquery-1.11.3.min.js'></script>
<script type="text/javascript" src="/plugins/js/vue.min.js"></script>
<script type="text/javascript" src="/plugins/iosselect/iosSelect.js"></script>
<!--<script type="text/javascript" src="/plugins/localResize/mobileFix.mini.js"></script>-->
<!--<script type="text/javascript" src="/plugins/localResize/exif.js"></script>-->
<!--<script type="text/javascript" src="/plugins/localResize/lrz.js"></script>-->
<script type="text/javascript" src="/js/happyi/editJob.js?v=<%=$version%>"></script>
</body>
</html>